package ynu.edu.achitecturework.dao;

import org.springframework.stereotype.Repository;
import ynu.edu.achitecturework.common.dao.LogicDAO;
import ynu.edu.achitecturework.entity.Device;

import java.util.List;

@Repository
public interface DeviceDAO extends LogicDAO<Device, Long> {
    List<Device> findByGreenhouseId(Long greenhouseId);
    Device findBySerialNumber(String serialNumber);
}